package com.infoplatform.serviceimpl;

import java.util.List;
import java.util.Map;

import com.infoplatform.bean.SecondaryCommodity;
import com.infoplatform.bean.SecondarycommodityComment;
import com.infoplatform.bean.Student;
import com.infoplatform.dao.SecondaryDao;
import com.infoplatform.service.SecondaryService;
 
public class SecondaryServiceImpl implements SecondaryService {

	private SecondaryDao secondaryDao;
	
	public List<SecondaryCommodity> SearchCommodity(String secondaryTag) {
		return secondaryDao.SearchCommodity(secondaryTag);
	}

	public List<SecondaryCommodity> SearchCommodityById(Integer id) {
		
		return secondaryDao.SearchCommodityById(id);
	}
	public void AddSecondary(SecondaryCommodity second) {
		
		secondaryDao.AddSecondary(second);
	}
	public SecondaryDao getSecondaryDao() {
		return secondaryDao;
	}
	public void setSecondaryDao(SecondaryDao secondaryDao) {
		this.secondaryDao = secondaryDao;
	}

	public List<SecondaryCommodity> getTop8() {
		return secondaryDao.getTop8();
	}

	public List<Student> QueryCustomer(Integer customerId) {
		return secondaryDao.QueryCustomer(customerId);
	}

	public List<Student> DeleteCustomer(Integer customerId) {
		return secondaryDao.DeleteCustomer(customerId);
	}

	public List<SecondaryCommodity> DeleteCommodityById(Integer id) {
		return secondaryDao.DeleteCommodityById(id);
	}

	public List<SecondaryCommodity> QueryCommodity(String secondaryTag) {
		return secondaryDao.QueryCommodity(secondaryTag);
	}

	public Map<String, SecondaryCommodity> SearchMap(String secondaryTag) {
		return secondaryDao.SearchMap(secondaryTag);
	}
	public List<SecondaryCommodity> SearchCommodity_New(String secondaryTag,
			Integer personalId) {
		return secondaryDao.SearchCommodity_New(secondaryTag, personalId);
	}

	public Map<String, SecondarycommodityComment> SearchComment(
			Integer commodityId) {
		return secondaryDao.SearchComment(commodityId);
	}
	
	public Map<String, SecondaryCommodity> EverythingSearch(
			String searchCondition,String sortType) {
		return secondaryDao.EverythingSearch(searchCondition,sortType);
	}
}
